package com.freewater.helloworld.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.ToString;

@ToString
@Entity
@Table(name = "tbl_book")
@NoArgsConstructor
@AllArgsConstructor
public class Book {

    @Id
    @Column(length = 64)
    private String isbn;

    @NotNull
    @Column(length = 200)
    private String title;
}
